package com.steak.bootactivemq.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CommodityMapper {

    @Update("UPDATE commodity SET commodity_total_num = commodity_total_num-1 WHERE commodity_id = #{commodityId}")
    public void reduceStock(String commodityId);
}
